package com.kotlin.tsw.goodscenter.ui.fragment

import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.kotlin.tsw.baselibrary.ui.fragment.BaseMVPFragment
import com.kotlin.tsw.goodscenter.R
import com.kotlin.tsw.goodscenter.data.protocol.Category
import com.kotlin.tsw.goodscenter.injection.component.DaggerCategoryComponent
import com.kotlin.tsw.goodscenter.injection.moudel.CategoryModule
import com.kotlin.tsw.goodscenter.presenter.CategoryPersenter
import com.kotlin.tsw.goodscenter.presenter.view.CategoryView

class CategoryFragment:BaseMVPFragment<CategoryPersenter>(),CategoryView {
    override fun injectComponent() {
        DaggerCategoryComponent.builder().activityComponent(activityComponent).categoryModule(CategoryModule()).build().inject(this)
        mPresenter.mView = this
    }

    override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? {
        super.onCreateView(inflater, container, savedInstanceState)
        return inflater.inflate(R.layout.fragment_category,container,false)
    }

    override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
        super.onViewCreated(view, savedInstanceState)

    }

    override fun onGetCatetoryResult(result: MutableList<Category>) {

    }
}